import Home from '../pages/Home'
import News from '../views/News/News'
import NewsHome from '../views/News/NewsHome'
import NewsDetail from '../views/News/NewsDetail'
import NewsSearch from '../views/News/NewsSearch'

export default [
    {
        name: 'news',
        path: '/news',
        component: News,
        children: [
            {
                name: 'newsHome',
                path: '/',
                exact: true,
                component: NewsHome
            },
            {
                name: 'newsDetail',
                path: '/detail',
                exact: true,
                component: NewsDetail
            },
            {
                name: 'newsSearch',
                path: '/search',
                exact: true,
                component: NewsSearch,
            }
        ]
    },
    {
        name: 'home',
        path: '/',
        exact: true,
        component: Home
    },
]